.class Lcom/xingbook/xingbook/activity/n;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

.field private final synthetic b:I


# direct methods
.method constructor <init>(Lcom/xingbook/xingbook/activity/XingBookMainActivity;I)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iput p2, p0, Lcom/xingbook/xingbook/activity/n;->b:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v1, 0x3

    const/4 v2, 0x2

    :try_start_0
    iget v0, p0, Lcom/xingbook/xingbook/activity/n;->b:I

    int-to-long v3, v0

    invoke-static {v3, v4}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    const-string v0, "\u7b5b\u9009\u4fe1\u606f\u52a0\u8f7d\u5931\u8d25\u5931\u8d25\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->b(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/a;

    move-result-object v3

    if-nez v3, :cond_0

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v4, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-virtual {v4}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a()I

    move-result v4

    invoke-static {v4}, Lcom/xingbook/park/d/f;->a(I)Lcom/xingbook/park/b/a;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a(Lcom/xingbook/xingbook/activity/XingBookMainActivity;Lcom/xingbook/park/b/a;)V

    :cond_0
    iget-object v3, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->b(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/a;

    move-result-object v3

    if-eqz v3, :cond_5

    invoke-static {}, Lcom/xingbook/c/n;->o()Z

    move-result v3

    if-eqz v3, :cond_4

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v3

    iget-object v4, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v4}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->o(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/d;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/xingbook/park/f/a;->a(Ljava/util/ArrayList;Lcom/xingbook/park/b/d;)Lcom/xingbook/park/e/c;

    move-result-object v3

    invoke-static {v3}, Lcom/xingbook/park/e/a;->a(Lcom/xingbook/park/e/c;)I

    move-result v4

    const/4 v5, 0x1

    if-ne v4, v5, :cond_1

    :goto_1
    iget-object v3, p0, Lcom/xingbook/xingbook/activity/n;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->r(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/xingbook/activity/x;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v1, v2, v4, v0}, Lcom/xingbook/xingbook/activity/x;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    :cond_1
    if-ne v4, v1, :cond_2

    const-string v0, "\u7f51\u7edc\u6570\u636e\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    goto :goto_1

    :cond_2
    if-ne v4, v2, :cond_3

    invoke-virtual {v3}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v0

    move v1, v2

    goto :goto_1

    :cond_3
    if-nez v4, :cond_5

    const-string v0, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u83b7\u53d6\u6570\u636e\u5931\u8d25\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    move v1, v2

    goto :goto_1

    :cond_4
    const-string v0, "\u7528\u6237\u6570\u636e\u52a0\u8f7d\u5931\u8d25\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    move v1, v2

    goto :goto_1

    :cond_5
    move v1, v2

    goto :goto_1
.end method
